﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace IDE
{
    public class txtProtocolo : RichTextBox
    {
        public txtProtocolo()
            : base()
        {
            this.Bounds = new Rectangle(20, 600, 1200, 90);  // para monitores velhos :-(

        }

        public static Label lblProtocolo()
        {
            Label ll = new Label();
            ll.Bounds = new Rectangle(20, 570, 1200, 30);
            ll.BorderStyle = BorderStyle.None;
            ll.AutoSize = false;
            ll.Text = "Protocolo";
            ll.TextAlign = ContentAlignment.MiddleLeft;
            //ll.Font = new Font(
            return ll;
        }

        public void AipTxt(string prmTxt)
        {
            // adicionar um item de protocolo, somente texto
            this.Text += prmTxt + "\r\n";
            this.SelectionStart = this.Text.Length; // posicionar ao final
            this.ScrollToCaret();
        }

    }
}
